package com.common.frame.listener


import android.graphics.Rect
import android.view.View
import androidx.recyclerview.widget.RecyclerView

class ItemDecoration(val callback: (Rect, View, RecyclerView, RecyclerView.State) -> Unit) :
    RecyclerView.ItemDecoration() {
    override fun getItemOffsets(
        outRect: Rect,
        view: View,
        parent: RecyclerView,
        state: RecyclerView.State
    ) {
        callback(outRect, view, parent, state)
    }
}